package com.mars.module.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.mars.common.request.PageRequest;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * 业务记录请求对象 sys_business
 *
 * @author mars
 * @date 2024-04-02
 */
@Data
@ApiModel(value = "业务记录对象")
@EqualsAndHashCode(callSuper = true)
public class SysBusinessRequest extends PageRequest{



    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 粮食
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "粮食")
    private Long foodId;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private int amount;

    /**
     * 流水号
     */
    @ApiModelProperty(value = "流水号")
    private String serialNo;

    /**
     * 业务类型
     */
    @ApiModelProperty(value = "业务类型")
    private String type;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    /**
     * 创建人名称
     */
    @ApiModelProperty(value = "创建人名称")
    private String createByName;


    @ApiModelProperty(value = "粮食名称")
    private String foodName;
}
